package com.android.canvasproject;

import android.content.Context;
import android.util.Log;
import android.view.MenuItem;

public final class ActionsMenuUtil {

	private static final ActionsMenuUtil INSTANCE = new ActionsMenuUtil();

	private ActionsMenuUtil(){}

	public static ActionsMenuUtil getInstance(){
		return INSTANCE;
	}
	
	public static boolean onOptionsItemSelected(Context ctx, MenuItem item){
		switch (item.getItemId()) {
			case R.id.action_search:
				Log.i("[ACTION SEARCH]", " ... ");
				return true;
				
			case R.id.action_new:
				Log.i("[ACTION NEW CANVAS]", " ... ");
				return true;
				
			case R.id.action_refresh:
				Log.i("[ACTION REFRESH]", " ... ");
				return true;

			case R.id.action_settings:
				Log.i("[ACTION SETTINGS]", " ... ");
				return true;

			case R.id.action_send_comment:
				Log.i("[ACTION FEEDBACK]", " ... ");
				return true;

			case R.id.action_help:
				Log.i("[ACTION HELP]", " ... ");
				return true;

			default:
				return false;
		}
	}
}